2020-2021 Sunseeker Telemetry and Lighting System
ram_ex1_setSectorOff.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Macros

#define DEFAULT_VALUE   0xBEAD
 

Functions

void main (void)
 
void WDT_A_ISR (void)
 

Macro Definition Documentation

◆ DEFAULT_VALUE

#define DEFAULT_VALUE   0xBEAD

RAM controller - Set sector0 to memory-retention mode.

Setup the RAM controller to memory retention mode. Once watchdog expires and wakes up from LPM3 mode, checking the value in the sector0 and toggle P1.0 if the value is same as orignal value.

Tested On: MSP430FR6989

/ |
RST
P1.0 -->LED

| |

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • RAM controller peripheral
  • WDT peripheral
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • WDT_A_VECTOR

Definition at line 62 of file ram_ex1_setSectorOff.c.

Function Documentation

◆ main()

void main ( void  )

Definition at line 66 of file ram_ex1_setSectorOff.c.

◆ WDT_A_ISR()

void WDT_A_ISR ( void  )

Definition at line 120 of file ram_ex1_setSectorOff.c.

References __bic_SR_register_on_exit().